script.setAttribute(row.name, row.value || '')
script.innerHTML = encodeForInnerHTML(row.value);
function removeAttributes(element: HTMLElement) { for (var i = 0; i < element.attributes.length; i++) { var a = element.attributes[i];
if (a.name === 'id' || a.name === 'type' || a.name === 'data-path')
element.removeAttribute(a.name);
export function encodeForInnerHTML(content: string): string { return content.replace(/<\/+script/g, (match) => { return '</' + match.slice(1);
export function decodeFromInnerHTML(innerHTML: string): string { return innerHTML.replace(/<\/\/+script/g, (match) => { return '<' + match.slice(2);